<template>
  <h1>组件通讯-跨层级组件通讯</h1>
  <h1>父组件</h1>
  <hr />
  <Son />
</template>

<script setup lang="ts">
import { provide, ref } from "vue";
import Son from "./components/Son.vue";

const money = ref(10000);
const car = ref("小黄车");

provide("money", money);
provide("car", car);
</script>